<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<body>
	<f:view>
		<h1>Efetuar Login</h1>
		<h:outputText value="#{gerenciadorLogin.msg }" style="color: #FF0000"></h:outputText>
		<h:form>
			<h:panelGrid border="0" columns="3">
				<h:outputText value="Login"></h:outputText>
				<h:inputText id="login" value="#{gerenciadorLogin.usuario.login }" required="true" requiredMessage="Você precisa preencher seu login"></h:inputText>
				<h:message for="login" style="color: red"></h:message>
				<h:outputText value="Senha"></h:outputText>
				<h:inputSecret id="senha" value="#{gerenciadorLogin.usuario.senha }" required="true" requiredMessage="Você precisa preencher sua senha"></h:inputSecret>
				<h:message for="senha" style="color: red"></h:message>
			</h:panelGrid>
			<h:commandButton value="Entrar" action="#{gerenciadorLogin.efetuarLogin }" style="margin-top: 20px"></h:commandButton>
		</h:form>
		<h:form>
			<h:commandLink style="display: block; margin-top: 10px"
				action="index">
				<h:outputText value="< Voltar"></h:outputText>
			</h:commandLink>
		</h:form>
	</f:view>
</body>
</html>